<!--# layout("/common/layout.html",{"jsBase":"/js/cms/enterprise/"}){ -->
<div class="layui-tab" lay-filter="test">
    <ul class="layui-tab-title">
        <li class="layui-this">企业基本信息</li>
        <!--<li>年度营收和纳税信息</li>-->
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
<form class="layui-form" id="updateForm">
    <fieldset class="layui-elem-field">
        <legend>企业基本信息</legend>
        <div class="layui-field-box">
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">统一社会信用代码</label>
                        <div class="layui-input-inline">
                            <input type="text" id="organizationCode" name="organizationCode"  value="${enterprise.organizationCode}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">企业名称</label>
                        <div class="layui-input-inline">
                            <input type="text" id="enterpriseName" name="enterpriseName"  value="${enterprise.enterpriseName}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">企业详细通讯地址</label>
                        <div class="layui-input-inline">
                            <input type="text" id="postalAddress" name="postalAddress"  value="${enterprise.postalAddress}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">注册资金(万元)</label>
                        <div class="layui-input-inline">
                            <input type="text" id="registeredCapital" name="registeredCapital"  value="${enterprise.registeredCapital}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">注册资金币种</label>
                        <div class="layui-input-inline">
                            <!--#
                                      if(enterprise.monetaryCurrency==null){
                                      -->
                            <input type="text" id="monetaryCurrency" name="monetaryCurrency"  value="${enterprise.monetaryCurrency}"   class="layui-input input-readonly" readonly>
                            <!--# }-->
                            <!--#
                                    else{
                                    -->
                            <layui:simpleDictSelect style='layui-input-inline' type="monetaryCurrencys" readonly="true"
                                                    id="monetaryCurrency" name="monetaryCurrency" value="${enterprise.monetaryCurrency}" />
                            <!--# }-->
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">营业执照注册号</label>
                        <div class="layui-input-inline">
                            <input type="text" id="registrationNumber" name="registrationNumber"  value="${enterprise.registrationNumber}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">成立日期</label>
                        <div class="layui-input-inline">
                            <input type="text" id="dateEstablishment" name="dateEstablishment"  value="${enterprise.dateEstablishment,"yyyy-MM-dd"}"   class="layui-input  input-readonly" readonly>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">企业法人	</label>
                        <div class="layui-input-inline">
                            <input type="text" id="enterpriseLegalPerson" name="enterpriseLegalPerson"  value="${enterprise.enterpriseLegalPerson}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">企业手机号码	</label>
                        <div class="layui-input-inline">
                            <input type="text" id="ephoneNumber" name="ephoneNumber"  value="${enterprise.ephoneNumber}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">企业联系电话</label>
                        <div class="layui-input-inline">
                            <input type="text" id="enterpriseTelephone" name="enterpriseTelephone"  value="${enterprise.enterpriseTelephone}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>

    <fieldset class="layui-elem-field">
        <legend>企业名录和额外信息</legend>
        <div class="layui-field-box">
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">企业邮箱</label>
                        <div class="layui-input-inline">
                            <input type="text" id="mail" name="mail"  value="${enterprise.mail}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">企业名录年度</label>
                        <div class="layui-input-inline">
                            <input type="text" id="enterpriseDirectory" name="enterpriseDirectory"  value="${enterprise.enterpriseDirectory}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">企业名录类别</label>
                        <div class="layui-input-inline">
                            <!--#
                                       if(enterprise.directoryEnterprises==null){
                                       -->
                            <input type="text" id="directoryEnterprises" name="directoryEnterprises"  value="${enterprise.directoryEnterprises}"   class="layui-input input-readonly" readonly >
                            <!--# }-->
                            <!--#
                                       else{
                                       -->
                            <layui:simpleDictSelect style='layui-input-inline' type="orgType"  readonly="true"
                                          id="directoryEnterprises" name="directoryEnterprises" value="${enterprise.directoryEnterprises}" />
                            <!--# }-->
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">企业名额</label>
                        <div class="layui-input-inline">
                            <input type="text" id="businessQuota" name="businessQuota"  value="${enterprise.businessQuota}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
        </div>
        </div>
    </fieldset>

    <fieldset class="layui-elem-field">
        <legend>企业联络信息</legend>
        <div class="layui-field-box">
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">企业承办部门负责人</label>
                        <div class="layui-input-inline">
                            <input type="text" id="personCharge" name="personCharge"  value="${enterprise.personCharge}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">企业承办部门负责人手机号码</label>
                        <div class="layui-input-inline">
                            <input type="text" id="phoneNumber" name="phoneNumber"  value="${enterprise.phoneNumber}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">企业承办部门负责人联系电话</label>
                        <div class="layui-input-inline">
                            <input type="text" id="pcontactNumber" name="pcontactNumber"  value="${enterprise.pcontactNumber}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">经办人</label>
                        <div class="layui-input-inline">
                            <input type="text" id="agent" name="agent"  value="${enterprise.agent}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">经办人手机号码</label>
                        <div class="layui-input-inline">
                            <input type="text" id="aphoneNumber" name="aphoneNumber"  value="${enterprise.aphoneNumber}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">经办人联系电话</label>
                        <div class="layui-input-inline">
                            <input type="text" id="acontactNumber" name="acontactNumber"  value="${enterprise.acontactNumber}"   class="layui-input input-readonly" readonly>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
    <input type="hidden" name="state" value=${enterprise.state} >
	<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
    <input type="hidden" id="userId" name="userId" value=${enterprise.userId} >
    <input type="hidden" name="delFlag" value=${enterprise.delFlag} >
    <input type="hidden" name="id" value=${enterprise.id} >
    <layui:find id="updateButton">返回</layui:find>
</form>

        </div>
        <div class="layui-tab-item">
            <div class="layui-btn-group">
                <layui:accessButton function="cms.enterprise.query"  action="add">新增</layui:accessButton>
                <layui:accessButton function="cms.enterprise.query"  action="edit">修改</layui:accessButton>
            </div>
            <table id="enterpriseTable" lay-filter="enterpriseTable"></table>
        </div>
    </div>
</div>
<!--#} -->
<script>
layui.use(['revenue'], function(){
    var enterpriseEdit = layui.revenue
    enterpriseEdit.init();
});

layui.use(['enterpriseEdit'], function(){
    var enterpriseEdit = layui.enterpriseEdit
    enterpriseEdit.init();
});

layui.use(['element', 'table'], function(){
    var element = layui.element;
    var table = layui.table;
    element.on('tab(test)', function (data) {
        if(data.index ==0) {
            table.reload('enterpriseTable');
        }
        else if(data.index == 1) {
            table.reload('enterpriseTable');
        }
       // layui.form.render("table");
    });
});
</script>
